
if( SERVER ) then
   
 	AddCSLuaFile( "shared.lua" ) 
 	SWEP.HoldType = "pistol";
 
 end 

if( CLIENT ) then

	
	SWEP.ViewModelFlip		= true	
	SWEP.CSMuzzleFlashes	= true
	
	SWEP.DrawCrosshair = false;

end
 
 SWEP.Base = "ep_base";
   
 SWEP.Spawnable			= false 
 SWEP.AdminSpawnable		= false 
   
SWEP.Primary.Sound = Sound( "weapons/scout/scout_fire-1.wav" );

SWEP.WorldModel = "models/weapons/w_snip_scout.mdl";
SWEP.ViewModel = "models/weapons/v_snip_scout.mdl";

SWEP.PrintName = "Steyr Scout";
SWEP.EpiDesc = "Sniper rifle.";

 SWEP.Primary.Recoil			= .1
 SWEP.Primary.RecoilAdd			= 1;
 SWEP.Primary.RecoilMin = .1
 SWEP.Primary.RecoilMax = 3
 
 SWEP.Primary.ViewPunchMul = 2;
 SWEP.Primary.Damage			= 14;
 SWEP.Primary.NumShots		= 1 
 
 SWEP.EpiHoldType = "RIFLE";


SWEP.Primary.MaxAmmoClip = 1;
SWEP.Primary.AmmoString = " 7.62mm rounds";
SWEP.Primary.AmmoType = 2;
SWEP.Primary.Delay = 2;
SWEP.Primary.Automatic = false;
SWEP.Primary.SpreadCone = Vector( .0, .0, .0 );
 SWEP.Primary.ReloadDelay = 3;
 
 SWEP.Primary.IronSightPos = Vector( 5, 2, -10.0 );
 SWEP.Primary.IronSightAng = Vector( 0.0, 0.0, 0.0 );

SWEP.Primary.HolsteredPos = Vector( 0.8, -5.0, -10.0 );
SWEP.Primary.HolsteredAng = Vector( 20.0, -50.0, 0.0 );

 SWEP.ItemWidth = 4;
 SWEP.ItemHeight = 1;

SWEP.IconCamPos = Vector( 31, 137, 50 );
SWEP.IconLookAt = Vector( 27, 109, 40 );
SWEP.IconFOV = 8;

SWEP.HUDWidth = 200;
SWEP.HUDHeight = 50;
SWEP.NicePhrase = "a scout sniper rifle";
SWEP.HeavyWeight = true;

if( CLIENT ) then


	function SWEP:HolsterToggle()
	
		ScopeMode( false );
	
	end


	SeeSniperScope = false;
	local ScopeTexture = surface.GetTextureID( "crosshair" );

	function SWEP:DrawHUD()

		if( math.floor( self.Primary.PositionMode ) == 1 and math.floor( self.Primary.PositionMul ) == 1 ) then 

			if( not ScopeOn ) then
			
				ScopeMode( true );

			end

			local x = ( ScrW() - 1024 ) * .5;
			local y = ( ScrH() - 1024 ) * .5;
			local w = 1024;
			if( w < ScrW() ) then x = 0; w = ScrW(); end
			local h = 1024;
			if( h < ScrH() ) then y = 0; h = ScrH(); end
			
			surface.SetTexture( ScopeTexture );
			surface.SetDrawColor( 255, 255, 255, 255 );
			surface.DrawTexturedRect( x, y, w, h );	
			
		elseif( ScopeOn ) then
		
			ScopeMode( false );

		end
		
		
	end

end


   